<template>
  <div class="mas">
    <div class="nav">
      <ul>
        <li @click="fanh">
          <div class="img">
            <img src="../assets/syb.png" alt="" />
          </div>
        </li>
        <li><span>我的收藏</span></li>
      </ul>
    </div>
    <div class="contn">
      <div class="moang">
        <img src="../assets/w.png" alt="" />
      </div>

      <span class="text">暂无收藏</span>
      <ul>
        <li></li>
      </ul>
    </div>
  </div>
</template>

<script>
import { Toast } from "vant";
import API from "../http/API";
export default {
  name: "shochang",
  components: {
    [Toast.name]: Toast,
  },
  data() {
    return {};
  },
  created() {
    this.http();
  },
  methods: {
    http() {
      this.$get(API.GET_COLLECT_LIST, {
        //         ①type: 0 表示收藏列表，1 表示专题列表
        // ②page: 当前页，默认 1
        // ③limit: 当前页条数，默认 10
        token: this.$store.state.token,
        type: 0,
      })
        .then((res) => {
          console.log(res);
          if (res.errmsg == "请登录") {
            Toast("请登录");
          }
        })
        .catch((err) => {});
    },
    fanh() {
      this.$router.go(-1);
    },
  },
};
</script>

<style lang="less" scoped>
.mas {
  display: flex;
  height: 100%;
}
.nav {
  width: 100%;
  height: 50px;
  background-color: rgb(247, 251, 255);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 55;
  ul {
    margin-left: 10px;
    margin-right: 10px;
    // border: 1px solid #000;
    height: 100%;
    display: flex;
    align-items: center;
    li {
      &:nth-child(1) {
        width: 50px;
        height: 50px;
        // border: 1px solid #000;
        display: flex;
        align-items: center;
        .img {
          height: 20px;
          width: 20px;
          img {
            width: 100%;
            height: 100%;
          }
        }
      }
      &:nth-child(2) {
        font-size: 17px;
      }
    }
  }
}
.contn {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  .moang {
    width: 200px;
    height: 200px;
    // border: 1px solid #000;
    img {
      width: 100%;
      height: 100%;
    }
  }
  .text {
    margin-top: 10px;
    font-size: 17px;
  }
}
</style>